package com.sqsf.service;

import com.sqsf.service.AppConfig;
import com.sqsf.service.User;
import com.sqsf.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainApp {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(AppConfig.class);

        UserService userService = context.getBean(UserService.class);
        userService.showUserInfo();

        context.close();
    }
}